'use strict';
function includes(collection,num){
  for(let item of collection){
    if(num===item){
      return true;
    }
  }
  return false;
}
function get_intersection(collection_a, collection_b) {
  let result=[];
  for(let item of collection_b){
    if(includes(collection_a,item)){
      result.push(item);
    }
  }
  console.log(result);
  return result;
}

module.exports = get_intersection;
get_intersection([10, 27, 28, 19, 5],[5, 78, 28, 19, 23]);
